<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class SensapilityAccount</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class SensapilityAccount</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">version:</span> 0.1</li>
				<li><span class="field">author:</span> api.jmatt@gmail.com</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_sensapilityaccount.php.html">/sensapilityaccount.php</a> (line <span class="field">29</span>)
		</p>
		
				
		<pre><a href="../default/SensapilityService.html">SensapilityService</a>
   |
   --SensapilityAccount</pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																																																																												
												<div class="method-definition">
											<span class="method-result">none</span>
										<a href="#SensapilityAccount" title="details" class="method-name">SensapilityAccount</a>
											(<span class="var-type">soapclientnusoap</span>&nbsp;<span class="var-name">$soapClient</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$namespaces</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$defaultNamespaceLabel</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">SyndicationService_Data</span>
										<a href="#addSyndicationService" title="details" class="method-name">addSyndicationService</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$service</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">SyndicationService_Data[]</span>
										<a href="#associateExistingAccount" title="details" class="method-name">associateExistingAccount</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$loginEmail</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$postalCode</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$phone</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">SyndicationService_Data[]</span>
										<a href="#createAdSenseAccount" title="details" class="method-name">createAdSenseAccount</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$loginEmail</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$entityType</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$websiteUrl</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$websiteLanguage</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$correspondenceLanguage</span>, <span class="var-type">bool</span>&nbsp;<span class="var-name">$promotionalEmail</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$serviceTypes</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#getAllSyndicationServices" title="details" class="method-name">getAllSyndicationServices</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getApprovalStatus" title="details" class="method-name">getApprovalStatus</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getAssociationStatus" title="details" class="method-name">getAssociationStatus</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#getEmailPromotionsPreference" title="details" class="method-name">getEmailPromotionsPreference</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getEntityType" title="details" class="method-name">getEntityType</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getSyndicationService" title="details" class="method-name">getSyndicationService</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$serviceType</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getUsersPreferredLocale" title="details" class="method-name">getUsersPreferredLocale</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getWebsiteLocale" title="details" class="method-name">getWebsiteLocale</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getWebsiteUrl" title="details" class="method-name">getWebsiteUrl</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">none</span>
										<a href="#setEmailPromotionsPreference" title="details" class="method-name">setEmailPromotionsPreference</a>
											(<span class="var-type">bool</span>&nbsp;<span class="var-name">$newPref</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">none</span>
										<a href="#setUsersPreferredLocale" title="details" class="method-name">setUsersPreferredLocale</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$newLocale</span>)
									</div>
								</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>

<a name="methodSensapilityAccount" id="SensapilityAccount"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">Constructor SensapilityAccount</span> (line <span class="line-number">40</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	
	<div class="method-signature">
		<span class="method-result">none</span>
		<span class="method-name">
			SensapilityAccount
		</span>
					(<span class="var-type">soapclientnusoap</span>&nbsp;<span class="var-name">$soapClient</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$namespaces</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$defaultNamespaceLabel</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">soapclientnusoap</span>
				<span class="var-name">$soapClient</span><span class="var-description">: the NuSOAP object that communicates  with the service</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$namespaces</span><span class="var-description">: associative array that matches namespace labels  to namespace URIs</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$defaultNamespaceLabel</span><span class="var-description">: the namespace to be used with most  tags</span>			</li>
				</ul>
		
			
	</div>
<a name="methodaddSyndicationService" id="addSyndicationService"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">addSyndicationService</span> (line <span class="line-number">71</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">return:</span> Returns null if the call fails, otherwise  returns the SyndicationService_Data object for the added service.</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">SyndicationService_Data</span>
		<span class="method-name">
			addSyndicationService
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$service</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$service</span><span class="var-description">: The name of the service to add to the user's account</span>			</li>
				</ul>
		
			
	</div>
<a name="methodassociateExistingAccount" id="associateExistingAccount"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">associateExistingAccount</span> (line <span class="line-number">95</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Associate with an existing account. The login email must be specified,  and one or both of the $postalCode and $phone must be supplied.</p>
	<ul class="tags">
				<li><span class="field">return:</span> An array of SyndicationService_Data  objects for the services that this account is signed up for. If the call  fails null is returned.</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">SyndicationService_Data[]</span>
		<span class="method-name">
			associateExistingAccount
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$loginEmail</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$postalCode</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$phone</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$loginEmail</span><span class="var-description">: The email address of the account you're trying  to associate with</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$postalCode</span><span class="var-description">: The authentication hint</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$phone</span><span class="var-description">: The phone hint</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcreateAdSenseAccount" id="createAdSenseAccount"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">createAdSenseAccount</span> (line <span class="line-number">130</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method to create a new AdSense account to be associated with your</p>
<p class="description"><p>developer account</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> An array of SyndicationService_Data  objects for the services that this account is signed up for. If the call  fails null is returned.</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">SyndicationService_Data[]</span>
		<span class="method-name">
			createAdSenseAccount
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$loginEmail</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$entityType</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$websiteUrl</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$websiteLanguage</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$correspondenceLanguage</span>, <span class="var-type">bool</span>&nbsp;<span class="var-name">$promotionalEmail</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$serviceTypes</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$loginEmail</span><span class="var-description">: Email address of the publisher</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$entityType</span><span class="var-description">: Either 'Individual' or 'Business'</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$websiteUrl</span><span class="var-description">: The URL to register with the new account</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$websiteLanguage</span><span class="var-description">: The language used on the website, encoded  as a Google locale, see  (http://code.google.com/apis/adsense/developer/adsense_api_lang_codes.html)  for more information</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$correspondenceLanguage</span><span class="var-description">: The language to be used to  communicate withe the publisher, encoded as a Google locale</span>			</li>
					<li>
				<span class="var-type">bool</span>
				<span class="var-name">$promotionalEmail</span><span class="var-description">: Whether or not the publisher wants to receive  promotional emails from AdSense</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$serviceTypes</span><span class="var-description">: An array of strings for the services the  publisher wants to sign up for.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetAllSyndicationServices" id="getAllSyndicationServices"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getAllSyndicationServices</span> (line <span class="line-number">53</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Get all the syndication services and associated IDs for the current user</p>
	<ul class="tags">
				<li><span class="field">return:</span> Returns null if the call fails. Returns an array of  SyndicationService_Data objects</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			getAllSyndicationServices
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetApprovalStatus" id="getApprovalStatus"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getApprovalStatus</span> (line <span class="line-number">178</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">return:</span> Whether or not the account application has been approved</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getApprovalStatus
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetAssociationStatus" id="getAssociationStatus"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getAssociationStatus</span> (line <span class="line-number">195</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">return:</span> Returns the status of the association between this  publisher account and your developer account</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getAssociationStatus
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetEmailPromotionsPreference" id="getEmailPromotionsPreference"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getEmailPromotionsPreference</span> (line <span class="line-number">212</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">return:</span> Whether or not the publisher is currently opted-in to  receive promotional email from Google AdSense</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			getEmailPromotionsPreference
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetEntityType" id="getEntityType"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getEntityType</span> (line <span class="line-number">228</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">return:</span> The entity type for this publisher's account</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getEntityType
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetSyndicationService" id="getSyndicationService"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getSyndicationService</span> (line <span class="line-number">246</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">return:</span> The service ID for the requested service, or null if the  user is not signed up for this service</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getSyndicationService
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$serviceType</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$serviceType</span><span class="var-description">: The service to get the id for</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetUsersPreferredLocale" id="getUsersPreferredLocale"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getUsersPreferredLocale</span> (line <span class="line-number">262</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">return:</span> The language used for communication with the publisher</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getUsersPreferredLocale
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetWebsiteLocale" id="getWebsiteLocale"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getWebsiteLocale</span> (line <span class="line-number">278</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">return:</span> The language that the website is written in</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getWebsiteLocale
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetWebsiteUrl" id="getWebsiteUrl"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getWebsiteUrl</span> (line <span class="line-number">294</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">return:</span> The URL for the registered website</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getWebsiteUrl
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodsetEmailPromotionsPreference" id="setEmailPromotionsPreference"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">setEmailPromotionsPreference</span> (line <span class="line-number">312</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	
	<div class="method-signature">
		<span class="method-result">none</span>
		<span class="method-name">
			setEmailPromotionsPreference
		</span>
					(<span class="var-type">bool</span>&nbsp;<span class="var-name">$newPref</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">bool</span>
				<span class="var-name">$newPref</span><span class="var-description">: Whether the publisher will receive emails from Google  AdSense</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetUsersPreferredLocale" id="setUsersPreferredLocale"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">setUsersPreferredLocale</span> (line <span class="line-number">339</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	
	<div class="method-signature">
		<span class="method-result">none</span>
		<span class="method-name">
			setUsersPreferredLocale
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$newLocale</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$newLocale</span><span class="var-description">: The language to used for communications with the  user encoded as a Google locale, see  (http://code.google.com/apis/adsense/developer/adsense_api_lang_codes.html)   for more information</span>			</li>
				</ul>
		
			
	</div>
							<h4>Inherited Methods</h4>
				<a name='inherited_methods'><!-- --></a>	
									<!-- =========== Summary =========== -->
					<p>Inherited From <span class="classname"><a href="../default/SensapilityService.html">SensapilityService</a></span></p>
					<blockquote>
													<span class="method-name"><a href="../default/SensapilityService.html#methodSensapilityService">SensapilityService::SensapilityService()</a></span><br>
													<span class="method-name"><a href="../default/SensapilityService.html#methodcheckForFailure">SensapilityService::checkForFailure()</a></span><br>
													<span class="method-name"><a href="../default/SensapilityService.html#methodcomputeDepth">SensapilityService::computeDepth()</a></span><br>
													<span class="method-name"><a href="../default/SensapilityService.html#methoddeepenArray">SensapilityService::deepenArray()</a></span><br>
													<span class="method-name"><a href="../default/SensapilityService.html#methoddoSoapCall">SensapilityService::doSoapCall()</a></span><br>
													<span class="method-name"><a href="../default/SensapilityService.html#methodformatError">SensapilityService::formatError()</a></span><br>
													<span class="method-name"><a href="../default/SensapilityService.html#methodformatFault">SensapilityService::formatFault()</a></span><br>
													<span class="method-name"><a href="../default/SensapilityService.html#methodgetHeaders">SensapilityService::getHeaders()</a></span><br>
													<span class="method-name"><a href="../default/SensapilityService.html#methodgetLastCallError">SensapilityService::getLastCallError()</a></span><br>
													<span class="method-name"><a href="../default/SensapilityService.html#methodsetHeaders">SensapilityService::setHeaders()</a></span><br>
											</blockquote>
										
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Fri, 25 May 2007 13:35:27 -0700 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.1</a>
	</p>
	</div></body>
</html>